package hn.sigit.logic.workflow.transaction.impl;

import hn.sigit.logic.workflow.transaction.AnalysisHelper;
import hn.sigit.logic.workflow.transaction.DataEntryHelper;

import javax.ejb.Remove;
import javax.ejb.Stateful;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Destroy;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Name("analysisHelper")
@Scope(value=ScopeType.CONVERSATION)
@AutoCreate
public class AnalysisHelperImpl implements AnalysisHelper {
	private static final long serialVersionUID = 1L;
	
	@In(scope = ScopeType.CONVERSATION)
	private DataEntryHelper dataEntryHelper;
	
	public AnalysisHelperImpl() {
		//dataEntryHelper = (DataEntryHelper)Component.getInstance("dataEntryHelper");
		System.out.println("SELECTED LADM ID: " + dataEntryHelper.getSelectedLadmBaUnitId());
	}
	
	@Destroy
	@Remove
	public void destroy() {
	}

}
